package com.gimi.cloud.bbp.manage.consumer.service.log.impl;

import com.gimi.cloud.bbp.common.utils.reqhead.Response;
import com.gimi.cloud.bbp.dto.log.LogMasterLoginDTO;
import com.gimi.cloud.bbp.manage.consumer.feign.SystemFeignService;
import com.gimi.cloud.bbp.manage.consumer.service.log.LogMasterLoginService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 管理员登录日志查询相关信息
 * @author wbj
 * @version 1.0
 * @Description
 * @create 2018-01-27
 **/
@Service
public class LogMasterLoginServiceImpl implements LogMasterLoginService{
    private static final Logger logger = LoggerFactory.getLogger(LogMasterLoginServiceImpl.class);
    private SystemFeignService systemFeignService;

    @Autowired
    public LogMasterLoginServiceImpl(SystemFeignService systemFeignService) {
        this.systemFeignService = systemFeignService;
    }

    @Override
    public Response getMasterLoginList(HttpServletRequest request, HttpServletResponse response, LogMasterLoginDTO masterLoginDTO) throws Exception {
        return systemFeignService.getLogMasterLoginList(masterLoginDTO);
    }
}
